# _*_coding:utf-8 _*_
# @Time:2024/4/19 14:46
# @Author:宋
# @FileName:Calc.py

# 计算器类
class Calc:
    # 加法运算
    def add(self, a, b):
        return a + b

    # 减法运算
    def sub(self, a, b):
        return a - b

    # 乘法运算
    def mul(self, a, b):
        return a * b

    # 除法运算
    def div(self, a, b):
        if b == 0:
            return "除数不能为0"
        else:
            return a / b
